<!--
 * @Date: 2021-10-23 12:43:31
 * @information: home
-->
<template>
  <div id="home">
    这是home页面, 当前环境：{{env}}
    <button @click="onJump">jumpToMine</button>
  </div>
</template>

<script>
import moment from 'moment'
import axios from 'axios'
import base from '@/assets/js/base'
import util from '@/assets/js/util'

export default {
  data () {
    return {
      env: '默认值',
    }
  },
  created () {

  },
  mounted () {
    alert('home - moment ---> ', moment)
    alert('home - axios ---> ', axios)
    alert('home - base ---> ', base)
    alert('home - util ---> ', util)
    this.env = process.env.NODE_ENV
  },
  activated () {

  },
  methods: {
    onJump () {
      this.$router.push({
        name: 'Mine',
        query: {
          name: 'ypf'
        },
        params: {
          age: 18
        }
      })
    },
    timeFormat (t) {
      return moment(t).format('YYYY-MM-DD HH:mm:ss')
    }
  }
}
</script>

<style lang="scss">
</style>